﻿<%@ Page Language="C#" MasterPageFile="~/UI/Master.Master" AutoEventWireup="true" CodeBehind="Books.aspx.cs" Inherits="Ue.CQRS.Samples.UI.Books" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Repeater ID="books" runat="server">
        <HeaderTemplate>
            <table border="1" style="border-collapse:collapse;width:100%;">
                <tr style="text-align:center;">
                    <td style="width:35px;">序号</td>
                    <td style="width:120px;">书名</td>
                    <td style="width:80px;">作者</td>
                    <td style="width:45px;">页数</td>
                    <td style="width:150px;">ISBN</td>
                    <td>描述</td>
                    <td style="width:100px;">操作</td>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr style="text-align:center;">
                <td>
                    <%# Container.ItemIndex + 1 %>
                </td>
                <td>
                    <%# Eval("Name") %>
                </td>
                <td>
                    <%# Eval("Author") %>
                </td>
                <td>
                    <%# Eval("Page") %>
                </td>
                <td>
                    <%# Eval("ISBN") %>
                </td>
                <td style="text-align:left;text-indent:5px;">
                    <%# Eval("Description") %>
                </td>
                <td>
                    <a href='<%# string.Format("BookEdit.aspx?Id={0}&Action={1}",Eval("Id"),Ue.CQRS.Samples.UI.AppCode.ActionOptions.Edit) %>'>编辑</a>
                    <a href='<%# string.Format("BookEdit.aspx?Id={0}&Action={1}",Eval("Id"),Ue.CQRS.Samples.UI.AppCode.ActionOptions.Delete) %>'>删除</a>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
</asp:Content>
